import { IsNumber, IsString } from "class-validator";
import { Column, Entity, PrimaryColumn } from "typeorm";

@Entity()
export class CType {
  @PrimaryColumn({
    name: "code_value",
    comment: "值",
  })
  @IsNumber()
  code_value: string;

  @Column({
    name: "code_name",
    comment: "名",
  })
  @IsString()
  code_name: string;

  @Column({
    name: "code_kind",
    comment: "类型",
  })
  @IsString()
  code_kind: string;
}
